home *** CD-ROM | disk | FTP | other *** search
- Path: galaxy.ucr.edu!not-for-mail
- From: thp@cs.ucr.edu (Tom Payne)
- Newsgroups: comp.lang.c++
- Subject: Re: Will JAVA kill C++?
- Date: 16 Mar 1996 01:46:06 GMT
- Organization: University of California, Riverside
- Message-ID: <4id6gu$skr@galaxy.ucr.edu>
- References: <313E44EA.14D110C0@netcom.com> <4hp18v$3di@frodo.smartlink.net> <4hq2j6$q93@galaxy.ucr.edu> <4i57fv$rgn@News.Dal.Ca>
- NNTP-Posting-Host: corvette.ucr.edu
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Dan Kelley (kelley@phys.ocean.dal.ca) wrote:
- : Tom Payne (thp@cs.ucr.edu) wrote:
- :
- : : When one is interested in speed, one should avoid pointers (as
- : : does. Fortran), since pointers kill opportunities for optimization.
- :
- : As a scientist who once walked a FORTRAN highway daily, who took an
- : off-ramp to c++/perl/matlab/gri, I have to take the bait thus
- : offered.
- :
- : Am I to suffer yet another language shift?
-
- I should hope not!!
-
- All I'm saying is that, if you want your compiler to optimize your
- code, you'll generally make its job easier (and it more successful),
- if you minimize your use of pointers.
-
- There are also some programming-methodology reasons for avoiding
- pointers, which have been denounced as "the goto's of data". But one
- can avoid pointers without avoiding languages that allow them,
- especially if the language has good support for references and
- associative arrays. (Though, as Matt Austern pointed out, references
- leave open many of the aliasing issues that cause pointers to kill
- opportunities for optimization.)
-
- Tom Payne
-